package allwe;

import java.util.concurrent.ArrayBlockingQueue;

public class Test02 {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<Object> queue = new ArrayBlockingQueue<>(3);
        queue.add("aaa");
        queue.offer("bbb");
        queue.put("ccc");
        System.out.println(queue);

//        queue.add("ddd");
        System.out.println(queue.offer("ddd"));
        System.out.println(queue);
    }
}
 